package com.example.administrator.myapplication.utils;

import android.app.ProgressDialog;
import android.content.Context;

/**
 * Created by Administrator on 2016/4/19.
 */
public class ProgressDialogFactory {
    public static ProgressDialog getProgressDialog(Context context){
        ProgressDialog dialog=new ProgressDialog(context);
        dialog.setIndeterminate(true);
        dialog.setCancelable(true);
        dialog.setMessage("请稍后...");
        return dialog;
    }
}
